<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-color.css">
        <link rel="stylesheet" href="css/appcan.icon.css">
        <link rel="stylesheet" href="css/appcan.control.css">
        <link rel="stylesheet" href="css/my/style.css">
        <link rel="stylesheet" href="js/swiper/css/swiper.min.css">
    </head>
    <body class="" ontouchstart>
        <div id="page_0" class="my-body ub-ver" tabindex="0">
            <div id="content" class="my-content-full2 bc-bg ub-ver ub-ac"></div>
            <div class="my-footer ubt bc-border ulev0 bg-white"></div>
        </div>
        <script src="js/appcan.js"></script>
        <script src="js/appcan.control.js"></script>
        <script src="js/appcan.scrollbox.js"></script>
        <script src="js/appcan.listview.js"></script>
        <script src="js/appcan.optionList.js"></script>
        <script src="js/appcan.slider.js"></script>
        <script src="js/appcan.tab.js"></script>
        <script src="js/appcan.treeview.js"></script>
        <script src="js/swiper/js/swiper.min.js"></script>
        <script src="js/my/smb.grid.js"></script>
        <script src="js/my/smb.window.js"></script>
        <script src="js/my/smb.localStorage.js"></script>
        <script src="js/my/smb.utils.js"></script>
        <script src="js/my/smb.log.js"></script>
        <script>
            appcan.ready(function() {
                var tab = appcan.tab({
                    selector : ".my-footer",
                    hasIcon : true,
                    hasAnim : false,
                    hasLabel : true,
                    hasBadge : false,
                    index : 0,
                    data : [{
                        label : "样例",
                        icon : "fa-clipboard"
                    }, {
                        label : "功能",
                        icon : "fa-building-o"
                    }, {
                        label : "我的",
                        icon : "fa-user"
                    }]
                });

                appcan.frame.open({
                    id : "content",
                    url : [{
                        "inPageName" : "index",
                        "inUrl" : "index_content.html"
                    }, {
                        "inPageName" : "func",
                        "inUrl" : "func_content.html"
                    }, {
                        "inPageName" : "my",
                        "inUrl" : "my_content.html"
                    }],
                    top : 0,
                    left : 0,
                    index : 0,
                    change : function(err, res) {
                        tab.moveTo(res.multiPopSelectedIndex);
                    }
                });

                tab.on("click", function(obj, index) {
                    appcan.window.selectMultiPopover("content", index);
                })
                try {
                    uexJPush.setAlias({
                        alias : "my"
                    }, function(error, data) {
                        if (!error) {
                            //alert(JSON.stringify(data));
                        } else {
                            alert("设置失败");
                        }
                    })
                    uexJPush.onReceiveMessage = function(data) {
                        smb_WriteLog("JPush-Msg", data, true);
                    }
                    uexJPush.onReceiveNotification = function(data) {
                        smb_WriteLog("JPush-Rece", data, true);
                    }
                    uexJPush.onReceiveNotificationOpen = function(data) {
                        smb_WriteLog("JPush-Open", data, true);
                    }
                } catch(e) {
                    smb_WriteLog("JPush", e, true);
                }
            })
        </script>
    </body>
</html>
